# 生成器

# tmp_list = [1, 2, 3, 4, 5]
# iterator = tmp_list.__iter__()
# try:
#     while True:
#         item = iterator.__next__()
#         print(item)
# except:
#     pass

tmp_dict = {
    "1": "a",
    "2": "b",
    "3": "c"
}
print(tmp_dict.items())
itera = tmp_dict.items().__iter__()
try:
    while True:
        item = itera.__next__()
        # print(item)
        # print(f"{item}:{tmp_dict[item]}")
except:
    pass
